package myfirstproject.firstproject.domain.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import myfirstproject.firstproject.domain.querry.PageQuery;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文章查询条件实体")
public class ArticleQueryDTO extends PageQuery {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "发布用户id")
    private String publisher;

    @Schema(description = "标题")
    private String title;
}
